package conf

import (
	"CaptchaCluster/log"
	"github.com/BurntSushi/toml"
)

type ClientConf struct {
	Name       string // 本机名称
	ServerAddr string
}

var Instance ClientConf

func Init() {
	_, err := toml.DecodeFile("./conf/conf.toml", &Instance)
	if err != nil {
		log.Fatal("配置错误:%v", err)
	}
}
